<?php
declare (strict_types = 1);

namespace app\adminapi\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class pygType extends Model
{
    //
    public function attr(){
        return $this->hasMany(pygAttribute::class,'type_id','id');
    }

    public function spec(){
        return $this->hasMany(pygSpec::class,'type_id','id');
    }
}
